<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>

	<body>
		
		<div class="page-content">
			<div class="page-header position-relative">
				<h1>
					属性管理
					<small>
						<i class="icon-double-angle-right"></i>
						属性列表
					</small>
				</h1>
			</div><!--/.page-header-->
			<div class="row-fluid">
				<div class="span12">
					<!--PAGE CONTENT BEGINS-->

					<div class="row-fluid">
						<div class="span12">
							<table id="sample-table-1" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th class="center" width="50">
											属性ID
										</th>
										<th width="150">属性名称</th>
										<th class="hidden-480" >属性值</th>
										
										
										<th class="hidden-480" width="100" >所属类型</th>

									
										<th width="200">分类操作</th>
									</tr>
								</thead>

								<tbody>
									{{foreach from="$attrData" value="$v"}}
									<tr>
										<td class="center">
											{{$v['atid']}}
										</td>

										<td>
											<a href="#">{{$v['atname']}}</a>
										</td>
										<td class="hidden-480">{{$v['atvalue']}}</td>
										<td class="hidden-phone">{{$tname}}</td>

										<td>
											<div class="btn-group">
												
												<a href="{{U('Attr/edit',array('atid'=>$v['atid'],'tid'=>$tid))}}" class="btn btn-mini btn-info">
													<i class="icon-edit bigger-120"></i>修改
												</a>

												<a href="javascript: if(confirm('您确定删除吗？')) location.href='{{U('Attr/del',array('atid'=>$v['atid'],'tid'=>$tid))}}'" class="btn btn-mini btn-danger">
													<i class="icon-trash bigger-120"></i>删除
												</a>
											</div>

										</td>
									</tr>
									{{endforeach}}
								</tbody>
							</table>
							<div class="add-btn">
								<a href="{{U('Attr/add',array('tid'=>$tid))}}" class="btn btn-success">添加属性</a>
							</div>
						</div>
					</div>
		</div><!--/.page-content-->

	</div><!--/.main-content-->
</div><!--/.main-container-->

	</body>
</html>
